#include<iostream>//8335366
#include <string>
using namespace std;
int ans = 0;
void func(int num, int score) {
	if (score == 70)ans++;
	if (score == 100 || num > 30)return;
	func(num + 1, score + 10);
	func(num + 1, 0);
}
int main() {
	func(1, 0);
	cout << ans << endl;
	return 0;
}
